process.env.NODE_ENV = process.env.NODE_ENV || 'development';
process.env.ZONE = process.env.ZONE || 'Asia/Hong_Kong';
var config = require('./config/config'),
    mongoose = require('./config/mongoose'),
    express = require('./config/express');

var db = mongoose();
var app = express();

var port = config.port;

app.use('/', function(req, res) {
    res.send('Hello World');
});

app.listen(port);

console.log('Server running at http://localhost:' + port);

module.exports = app;
